import QtQuick 2.15
import QtQuick.Controls 2.15

Rectangle {
	width: childrenRect.width
	height: childrenRect.height
	id: root
	property  alias text: label.text
	property  alias status: status.text
	signal clicked
	Rectangle {
		id: button
		width: 130
		height: 50
		color: "lightsteelblue"
		border.color: "slategrey"
		Text {
			id: label
			anchors.fill: parent
			text: "Start"
		}
		MouseArea {
			anchors.fill: parent
			// onClicked:{
			// 	status.text = 'button clicked!'
			// }
			onClicked: {
				root.clicked()
			}
		}
		
	}
	Text {
		id: status
		x: 16; y: 50
		width: 116; height: 26
		text: 'waiting...'
		horizontalAlignment: Text.AlignHCenter
	}
}
